package com.xhh.nphm.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xhh.nphm.system.domain.MwfJudgeEty;
import com.xhh.nphm.system.mapper.MwfJudgeDao;
import com.xhh.nphm.system.service.IMwfJudgeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class MwfJudgeServiceImpl extends ServiceImpl<MwfJudgeDao, MwfJudgeEty> implements IMwfJudgeService {
    @Autowired
    private MwfJudgeDao mwfJudgeDao;
    /**
     * 工单id对应回访记录 列表数据
     * @param wfId 工单id
     * @return
     */
    @Override
    public List<Map<String, Object>> judgeListJson(Integer wfId) {
        return mwfJudgeDao.judgeListJson(wfId);
    }

    /**
     * 工单id 对应回访记录数据
     * @param wfId
     * @return
     */
    @Override
    public MwfJudgeEty getByWfId(Integer wfId) {
        return mwfJudgeDao.getByWfId(wfId);
    }
}
